package com.jzo2o.foundations.controller.operation;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import com.jzo2o.foundations.service.IServeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 区域服务相关接口
 *
 * @author ixl
 * @create 2025/5/17 21:48
 **/

@RestController("operationServeController")
@RequestMapping("/operation/sever")
@Api(tags = "运营端-区域服务相关接口")
public class SeverController {

    @Resource
    IServeService serveService;

    @GetMapping("/page")
    @ApiOperation("分页查询")
    public PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO){
        PageResult<ServeResDTO> page = serveService.page(servePageQueryReqDTO);
        return page;
    }
}
